import http from '@/utils/request'

export function login(params) {
  return http.request({
    method: 'get',
    url: '/login',
    params
  })
}

export function getInfo(params) {
  return http.request({
    method: 'get',
    url: '/getUserInfo',
    params
  })
}

export function logout() {
  return http.request({
    url: '/logout',
    method: 'get'
  })
}